package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;

import com.qifan.alb2b.dao.PictureInfoDao;
import com.qifan.alb2b.domain.PictureInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

@Service
public class PictureInfoService {
	private PictureInfoDao pictureInfoDao;

	
	
	public void setPictureInfoDao(PictureInfoDao pictureInfoDao) {
		this.pictureInfoDao = pictureInfoDao;
	}

	public Page query(DataGridModel dgm,PictureInfoDomain uqp){
		return pictureInfoDao.query(dgm,uqp);
	}
	
	public void add(PictureInfoDomain pictureInfoDomain){
		pictureInfoDao.add(pictureInfoDomain);
	}
	
	public void update(PictureInfoDomain pictureInfoDomain){
		pictureInfoDao.update(pictureInfoDomain);
	}
	
	
	public PictureInfoDomain getPictureById(String id){
		return pictureInfoDao.getPictureById(id);
	}
	public void delete(String[] ids){
		pictureInfoDao.delete(ids);
	}
}
